package city.spring.modules.call.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 实体类：呼叫记录表
 *
 * @author 侯坤林
 * @date 2020-09-18 14:28:56
 */
@Data
@TableName("call_record")
public class CallRecordEntity implements Serializable {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 老人信息ID
     */
    private String oldmanId;

    /**
     * 老人呼叫时间
     */
    private LocalDateTime callTime;

    /**
     * 预留：呼叫类型
     */
    private Integer type;

    /**
     * 该呼叫的执行情况
     */
    private String implementation;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 标记是否完成，该呼叫是否已经处理完毕
     */
    private Boolean complete;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtCreated;

    /**
     * 更新时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime gmtModified;
}